import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var ScfaRemxComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(ScfaRemxComponentViewmodel, _super);
    function ScfaRemxComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/scfas';
        _this.dom = {
            "scfa-remx-dataGrid": {
                "type": "DataGrid",
                "resourceId": "scfa-remx-dataGrid",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "scfa-remx-dataGrid",
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "fjxx_AttachmentId_32a228fe_29mi",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "fjxx_AttachmentId_32a228fe_29mi",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "fjxx_AttachmentId",
                            "fullPath": "fjxx.AttachmentId",
                            "isExpression": false,
                            "value": "fjxx_AttachmentId"
                        },
                        "dataField": "fjxx.attachmentId",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "附件Id",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "fjxx_AttachmentId_32a228fe_p5h0",
                            "defaultI18nValue": "附件Id",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "fjxx_AttachmentId_32a228fe_p5h0",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "fjxx_AttachmentId",
                                "fullPath": "fjxx.AttachmentId",
                                "isExpression": false,
                                "value": "fjxx_AttachmentId"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "fjxx_FileName_32a228fe_xokr",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "fjxx_FileName_32a228fe_xokr",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "fjxx_FileName",
                            "fullPath": "fjxx.FileName",
                            "isExpression": false,
                            "value": "fjxx_FileName"
                        },
                        "dataField": "fjxx.fileName",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "附件名称",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "fjxx_FileName_32a228fe_e7xb",
                            "defaultI18nValue": "附件名称",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "fjxx_FileName_32a228fe_e7xb",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "fjxx_FileName",
                                "fullPath": "fjxx.FileName",
                                "isExpression": false,
                                "value": "fjxx_FileName"
                            },
                            "disable": false,
                            "maxLength": 128,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "fjxx_FileSize_32a228fe_nh6j",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "fjxx_FileSize_32a228fe_nh6j",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "fjxx_FileSize",
                            "fullPath": "fjxx.FileSize",
                            "isExpression": false,
                            "value": "fjxx_FileSize"
                        },
                        "dataField": "fjxx.fileSize",
                        "dataType": "number",
                        "multiLanguage": false,
                        "caption": "附件大小",
                        "editor": {
                            "type": "FarrisNumberSpinner",
                            "isTextArea": true,
                            "resourceId": "fjxx_FileSize_32a228fe_gfet",
                            "defaultI18nValue": "附件大小",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "fjxx_FileSize_32a228fe_gfet",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "fjxx_FileSize",
                                "fullPath": "fjxx.FileSize",
                                "isExpression": false,
                                "value": "fjxx_FileSize"
                            },
                            "disable": false,
                            "step": 1,
                            "useThousands": true,
                            "textAlign": "left",
                            "precision": 8
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "formatter": {
                            "type": "number",
                            "precision": 8,
                            "thousand": ",",
                            "decimal": "."
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "fjxx_FileCreateTime_32a228fe_5803",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "fjxx_FileCreateTime_32a228fe_5803",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "fjxx_FileCreateTime",
                            "fullPath": "fjxx.FileCreateTime",
                            "isExpression": false,
                            "value": "fjxx_FileCreateTime"
                        },
                        "dataField": "fjxx.fileCreateTime",
                        "dataType": "datetime",
                        "multiLanguage": false,
                        "caption": "附件上传时间",
                        "editor": {
                            "type": "EditableField",
                            "disable": false,
                            "editable": true,
                            "dateRange": false,
                            "showTime": true,
                            "title": "附件上传时间",
                            "showType": 1,
                            "locale": "zh-cn",
                            "dateFormat": "yyyy-MM-dd HH:mm:ss",
                            "format": "'yyyy-MM-dd'",
                            "placeHolder": "",
                            "linkedLabelEnabled": false,
                            "disableDates": [],
                            "returnType": "Date",
                            "useDefault": false,
                            "showWeekNumbers": false,
                            "dateRangeDatesDelimiter": "~",
                            "shortcuts": [],
                            "holdPlace": false,
                            "returnFormat": "yyyy-MM-dd HH:mm:ss",
                            "titleWidth": null,
                            "localization": false,
                            "isTextArea": true,
                            "resourceId": "fjxx_FileCreateTime_32a228fe_qi2f",
                            "defaultI18nValue": "附件上传时间",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "fjxx_FileCreateTime_32a228fe_qi2f",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "fjxx_FileCreateTime",
                                "fullPath": "fjxx.FileCreateTime",
                                "isExpression": false,
                                "value": "fjxx_FileCreateTime"
                            }
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "formatter": {
                            "type": "date",
                            "dateFormat": "yyyy-MM-dd HH:mm:ss"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "xfrq_2ffe55fd_859n",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "xfrq_2ffe55fd_859n",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "xfrq",
                            "fullPath": "xfrq",
                            "isExpression": false,
                            "value": "xfrq"
                        },
                        "dataField": "xfrq",
                        "dataType": "datetime",
                        "multiLanguage": false,
                        "caption": "下发日期",
                        "editor": {
                            "type": "EditableField",
                            "disable": false,
                            "editable": true,
                            "dateRange": false,
                            "showTime": true,
                            "title": "下发日期",
                            "showType": 1,
                            "locale": "zh-cn",
                            "dateFormat": "yyyy-MM-dd HH:mm:ss",
                            "format": "'yyyy-MM-dd'",
                            "placeHolder": "",
                            "linkedLabelEnabled": false,
                            "disableDates": [],
                            "returnType": "Date",
                            "useDefault": false,
                            "showWeekNumbers": false,
                            "dateRangeDatesDelimiter": "~",
                            "shortcuts": [],
                            "holdPlace": false,
                            "returnFormat": "yyyy-MM-dd HH:mm:ss",
                            "titleWidth": null,
                            "localization": false,
                            "isTextArea": true,
                            "resourceId": "xfrq_2ffe55fd_llko",
                            "defaultI18nValue": "下发日期",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "xfrq_2ffe55fd_llko",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "xfrq",
                                "fullPath": "xfrq",
                                "isExpression": false,
                                "value": "xfrq"
                            }
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "date",
                            "dateFormat": "yyyy-MM-dd HH:mm:ss"
                        }
                    }
                ],
                "multiSelect": false,
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    ScfaRemxComponentViewmodel.prototype.scfaremxcomponentviewmodelAddItem1 = function (commandParam) { return; };
    ScfaRemxComponentViewmodel.prototype.scfaremxcomponentviewmodelRemoveItem1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'scfaremxcomponentviewmodelAddItem1',
            params: {}
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], ScfaRemxComponentViewmodel.prototype, "scfaremxcomponentviewmodelAddItem1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'scfaremxcomponentviewmodelRemoveItem1',
            params: {
                id: '{DATA~/#{scfa-remx-component}/scfas/id}'
            },
            paramDescriptions: {
                id: ɵ0
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], ScfaRemxComponentViewmodel.prototype, "scfaremxcomponentviewmodelRemoveItem1", null);
    ScfaRemxComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], ScfaRemxComponentViewmodel);
    return ScfaRemxComponentViewmodel;
}(ViewModel));
export { ScfaRemxComponentViewmodel };
export { ɵ0 };
